package com.itheima.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages ={
        "com.itheima.config" ,
        "com.itheima.service",
        "com.itheima.admin"

        })
@MapperScan("com.itheima.mapper")
@EnableTransactionManagement
@EnableCaching  //开启SpringCache缓存注解功能
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }

}
